from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *

from ui.Frm_News import Ui_Frm_News

import Function as F
class Uipy_Frm_News(QWidget,Ui_Frm_News):
    def __init__(self,parent=None):
        super(Uipy_Frm_News, self).__init__(parent)
        self.setupUi(self)
        from os.path import exists
        if exists('更新日志.txt'):
            with open('更新日志.txt','r',encoding='utf-8') as f:
                self.tB_News.setText(f.read())
